package org.qinys.mongodb.dao;

import java.util.List;

import org.qinys.mongodb.model.WeiboInfo;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface WeiboDao {
	public abstract void _test();

	public abstract void createCollection();

	public abstract List<WeiboInfo> findList(Integer limit);

	public abstract List<WeiboInfo> findListBySchool(String school,
			Integer limit);

	public abstract WeiboInfo findOne(String id);

	public abstract WeiboInfo findOneByWeiboId(String weiboId);

	public abstract int insert(WeiboInfo weiboInfo);

	public abstract int update(WeiboInfo weiboInfo);

	public abstract int delete(WeiboInfo weiboInfo);
}
